package com.reader.api.pay;

import com.reader.api.pay.request.PayCallbackRequest;
import com.reader.api.pay.request.PayRequest;
import com.reader.api.pay.response.PayCallbackResponse;
import com.reader.api.pay.response.PayResponse;

/**
 * @author liujianqing
 * @date 2018/10/25
 */
public interface PayService {
    /**
     * 支付服务.
     *
     * @param payRequest
     * @return
     */
    public PayResponse pay(PayRequest payRequest);

    /**
     * 处理支付回调.
     *
     * @param payCallbackRequest
     * @return
     */
    public PayCallbackResponse payCallback(PayCallbackRequest payCallbackRequest);
}
